import request from '@/utils/request'
// spu 获取分页接口 GET /admin/product/{page}/{limit}、
export const reqSpuList = (page, limit, category3Id) => request({
        url: `/admin/product/${page}/${limit}`,
        methods: 'get',
        params: { category3Id }
    })
    //获取 spu信息接口 GET /admin/product/getSpuById/{spuId}
export const reqSpu = (spuId) => request({
        url: `/admin/product/getSpuById/${spuId}`,
        methods: 'get',
    })
    // 获取品牌信息 GET /admin/product/baseTrademark/getTrademarkList
export const reqTrademark = () => request({
        url: `/admin/product/baseTrademark/getTrademarkList`,
        methods: 'get',
    })
    // 获取spu 图片信息 GET /admin/product/spuImageList/{spuId}
export const reqSpuImg = (spuId) => request({
        url: `/admin/product/spuImageList/${spuId}`,
        methods: 'get',
    })
    // 获取平台销售属性'GET /admin/product/baseSaleAttrList
export const reqAttr = () => request({
    url: `/admin/product/baseSaleAttrList`,
    methods: 'get',
})

// 添加接口 POST /admin/product/saveSkuInfo
// export const reqAttr = () => request({
//         url: `/admin/product/baseSaleAttrList`,
//         methods: 'get',
//     })